import 'package:flutter/material.dart';

/// bottom_navigation_widget2.dart
///

class MyBottomAppBar extends StatefulWidget {
  const MyBottomAppBar({Key? key}) : super(key: key);

  @override
  State<StatefulWidget> createState() => _MyBottomAppBar();
}

class _MyBottomAppBar extends State<MyBottomAppBar> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      floatingActionButton: FloatingActionButton(
        onPressed: (){},
        tooltip: 'JSPang',
        child: const Icon(Icons.add, color: Colors.white,),
      ),
      floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
      bottomNavigationBar: BottomAppBar(
        color: Colors.lightBlue,
        shape: const CircularNotchedRectangle(),
        child: Row(
          mainAxisSize: MainAxisSize.max,
          mainAxisAlignment: MainAxisAlignment.spaceAround,
          children: [
            IconButton(onPressed: (){}, icon: const Icon(Icons.home),color: Colors.white,),
            IconButton(onPressed: (){}, icon: const Icon(Icons.airplay),color: Colors.white,)
          ],
        ),
      ),
    );
  }
}
